<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j">
    <a4j:form id="frmOrden">
   		<rich:panel id="panOrdenes" header="Ordenes">
			<h:panelGrid id="out" columns="2" styleClass="gridhello" columnClasses="gridhellocolumn">
	            <h:outputText value="Id:" />
	            <h:inputText readonly="true" value="#{gestorOrdenes.currentOrden.id}" style=" width : 101px;"/>
	            <h:outputText value="Nombre:" />
	            <h:inputText id="idOrden" value="#{gestorOrdenes.currentOrden.orden}" >
	            </h:inputText>
                    <h:outputText value="Tipo:" />
                    <h:inputText id="tipo" value="#{gestorOrdenes.currentOrden.tipo.id}" >

	            </h:inputText>

        	</h:panelGrid>
        	<h:panelGrid id="pngBtnGrabar" columns="1" cellspacing="5px">
				<a4j:commandButton id="btnGrabar" value="#{general.btnVer}" action="#{gestorOrdenes.grabar}"
	                                           title="#{general.titleBtnOP}"/>
                                <a4j:commandButton id="btnBuscaEmpleado" image="/imagenes/application_form_magnify.ico"
                                       actionListener="#{gestorOrdenes.pasarParamatrosEmpleado}" ajaxSingle="true"/>
	        </h:panelGrid>
        	
        </rich:panel>
         <a4j:include id="incBuscarEmpleado" viewId="/comun/buscarEmpleado.xhtml"/>
    </a4j:form>
</ui:composition>